import request from '@/utils/request';

export async function getTechnicalSupportByPage(params: any) {
  return request('/api/sales/getTechnicalSupportByPage', {
    method: 'POST',
    data: params,
  });
}

export async function getTechnicalSupportById(params: any) {
  return request('/api/sales/getTechnicalSupportById', {
    method: 'POST',
    data: params,
  });
}
export async function addTechnicalSupport(params: any) {
  return request('/api/sales/addTechnicalSupport', {
    method: 'POST',
    data: params,
  });
}

export async function delTechnicalSupport(params: any) {
  return request('/api/sales/delTechnicalSupport', {
    method: 'POST',
    data: params,
  });
}

export async function updateTechnicalSupport(params: any) {
  return request('/api/sales/updateTechnicalSupport', {
    method: 'POST',
    data: params,
  });
}

export async function engineerList(params: any) {
  return request('/api/sales/engineerList', {
    method: 'POST',
    data: params,
  });
}
/**
 *
 * @param params 增加技术支持
 * @returns
 */
export async function addTechnicalsSupport(params: any) {
  return request('/api/sales/addTechnicalsSupport', {
    method: 'POST',
    data: params,
  });
}

/**
 *
 * @param params 更新技术支持
 * @returns
 */
export async function updateTechnicalsSupport(params: any) {
  return request('/api/sales/updateTechnicalsSupport', {
    method: 'POST',
    data: params,
  });
}

/**
 * 获的技术支持
 * @param params
 * @returns
 */
export async function getTechnicalSupportsById(params: any) {
  return request('/api/sales/getTechnicalSupportsById', {
    method: 'POST',
    data: params,
  });
}
